// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import 'babel-polyfill'
import Es6Promise from 'es6-promise'
require('es6-promise').polyfill()
Es6Promise.polyfill()

import './util/hs-rem.js'
import './util/v-scroll.js'

import struc from './components/struc.vue'
import headNavBar from './components/head-nav-bar.vue'
import footNav from './components/foot-nav.vue'

Vue.component('struc', struc)
Vue.component('head-nav-bar', headNavBar)
Vue.component('foot-nav', footNav)

import {
  List,
  Icon,
  Toast,
  Stepper,
  DatetimePicker
} from "vant";

Vue.use(List)
  .use(Icon)
  .use(Stepper)
  .use(DatetimePicker)

Vue.config.productionTip = false


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
